public int DailyWorkSettingAction(DailyWorkSettingModel model)
 {
     using (var dbctx = DbContext)
     {
         var id = dbctx.DailyWorkSettingAction(model.Sunday, model.Monday, model.Tuesday, model.Wednesday, model.Thursday, model.Friday, model.Saturday, model.StartTime, model.EndTime, model.StartLunchTime, model.EndLunchTime, model.CreatedBy, model.Id).FirstOrDefault();
         return(Convert.ToInt32(id ?? 0));
     }
 }
 public static DailyWorkSettingViewModel ToViewModel(this DailyWorkSettingModel x)
 {
     if (x == null)
     {
         return(new DailyWorkSettingViewModel());
     }
     return(new DailyWorkSettingViewModel
     {
         Id = x.Id,
         UpdatedBy = x.UpdatedBy,
         CreatedBy = x.CreatedBy,
         Wednesday = x.Wednesday,
         Tuesday = x.Tuesday,
         Thursday = x.Thursday,
         Sunday = x.Sunday,
         StartTime = x.StartTime,
         EndLunchTime = x.EndLunchTime,
         EndTime = x.EndTime,
         Friday = x.Friday,
         Monday = x.Monday,
         Saturday = x.Saturday,
         StartLunchTime = x.StartLunchTime,
     });
 }
 public int DailyWorkSettingAction(DailyWorkSettingModel model)
 {
     return(_dailyWorkSettingDBService.DailyWorkSettingAction(model));
 }