public ProjectTaskRecord Save(ProjectTaskRecord record) { var result = _db.ProjectTasks.Add(record); _db.SaveChanges(); return(result.Entity); }
public ProjectTaskDto(ProjectTaskRecord record, UserRecord assignedTo) { Id = record.Id; ProjectId = record.ProjectId; Label = record.Label; Description = record.Description; Completed = record.Completed; AssignedTo = new ProjectMemberDto { DisplayName = assignedTo.DisplayName, Email = assignedTo.Email }; }