public ActionResult PerformCreateBed(string code) { VM_Bed bed = new VM_Bed { BedCode = code }; var id = this._iBedServices.CreateNewBedReturnId(ConvertVM.VMBed_To_Bed(bed)); return(Json(id)); }
internal static Bed VMBed_To_Bed(VM_Bed vM_Bed) { logger.EnterMethod(); try { return(new Bed() { BedCode = vM_Bed.BedCode, Id = vM_Bed.Id }); } catch (Exception e) { logger.Error("Error: [" + e.Message + "]"); return(null); } finally { logger.LeaveMethod(); } }
internal static void VM_Bed_Add_TimePeriod(VM_Bed vM_Bed, List <VM_TimePeriod> vM_TimePeriods) { vM_Bed.TimePeriod = vM_TimePeriods; }