public static TimeEntry toEntity(this TimeEntryRecord record) => new TimeEntry { Id = record.Id, ProjectId = record.ProjectId, UserId = record.UserId, Date = record.Date, Hours = record.Hours };
public static TimeEntry ToEntity(this TimeEntryRecord record) => new TimeEntry { Id = record.Id, ProjectId = record.projectId, UserId = record.userId, Date = record.date, Hours = record.hours };
public static TimeEntry ToEntity(this TimeEntryRecord record) { return(new TimeEntry { Id = record.Id, ProjectId = record.ProjectId, UserId = record.UserId, Date = record.Date, Hours = record.Hours }); }
public static TimeEntry ToEntity(this TimeEntryRecord record) { var mappped = new TimeEntry { Id = record.Id, ProjectId = record.ProjectId, UserId = record.UserId, Date = record.Date, Hours = record.Hours }; return(mappped); }
public static TimeEntryRecord ToRecord(this TimeEntry entity) { var mapped = new TimeEntryRecord { Id = entity.Id, ProjectId = entity.ProjectId, UserId = entity.UserId, Date = entity.Date, Hours = entity.Hours }; return(mapped); }
public static TimeEntry ToEntry(this TimeEntryRecord record) { TimeEntry entry = new TimeEntry { Id = record.Id, ProjectId = record.ProjectId, UserId = record.UserId, Date = record.Date, Hours = record.Hours }; return(entry); }
public static TimeEntry ToEntity(this TimeEntryRecord record) { if (record != null) { return(new TimeEntry() { Id = record.Id, ProjectId = record.ProjectId, UserId = record.UserId, Date = record.Date, Hours = record.Hours }); } else { return(null); } }