Ejemplo n.º 1
0
 public static TimeEntry toEntity(this TimeEntryRecord record) => new TimeEntry
 {
     Id        = record.Id,
     ProjectId = record.ProjectId,
     UserId    = record.UserId,
     Date      = record.Date,
     Hours     = record.Hours
 };
Ejemplo n.º 2
0
 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
     });
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
 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);
     }
 }