Skip to content
Snippets Groups Projects
Commit 5b688779 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Update: Add E-Mail to UserObject return (coscine/issues#232)

parent f91a1c23
Branches
Tags
1 merge request!14Sprint/20190829
......@@ -49,7 +49,7 @@ namespace Coscine.Api.Project.Controllers
{
role = roleModel.GetById(projectRole.RoleId);
}
return new ProjectRoleObject(projectRole.ProjectId, new UserObject(userInst.Id, userInst.DisplayName), new RoleObject(role.Id, role.DisplayName));
return new ProjectRoleObject(projectRole.ProjectId, new UserObject(userInst.Id, userInst.DisplayName, userInst.EmailAddress), new RoleObject(role.Id, role.DisplayName));
});
}
else
......
using Coscine.ApiCommons.ReturnObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Coscine.Api.Project.ReturnObjects
{
......@@ -13,11 +9,13 @@ namespace Coscine.Api.Project.ReturnObjects
public Guid Id { get; set; }
public string DisplayName { get; set; }
public string EmailAddress { get; set; }
public UserObject(Guid id, string displayName)
public UserObject(Guid id, string displayName, string emailAddress)
{
Id = id;
DisplayName = displayName;
EmailAddress = emailAddress;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment