Example #1
0
        public static ScheduleJob MapToJob(JobDAO job)
        {
            var c = new ScheduleJob();

            c.Id            = job.Id;
            c.ServiceTypeID = job.ServiceType.Id;
            c.ServiceType   = ServiceTypeMapper.MapToServiceType(job.ServiceType);
            c.ClientID      = job.Client.Id;
            c.Client        = ClientMapper.MapToClient(job.Client);
            c.UserID        = job.User.Id;
            //c.AspNetUser = UserMapper.MapToUser(job.User);
            c.StartDate         = job.StartDate;
            c.EndDate           = job.EndDate;
            c.EstimatedDuration = job.EstimatedDuration;
            c.Notes             = job.Notes;
            c.Hours             = job.Hours;
            c.Complete          = job.Complete;

            return(c);
        }
Example #2
0
 public bool UpdateType(ServiceTypeDAO service)
 {
     return(ef.UpdateType(ServiceTypeMapper.MapToServiceType(service)));
 }
Example #3
0
 public bool AddType(ServiceTypeDAO service)
 {
     return(ef.AddType(ServiceTypeMapper.MapToServiceType(service)));
 }
Example #4
0
 public bool DeleteType(ServiceTypeDAO service)
 {
     return(ef.DeleteType(ServiceTypeMapper.MapToServiceType(service)));
 }