private List <PropertyWorkingDays> _loadWorkingDays(AdminVWModel adminVWModel) { List <PropertyWorkingDays> workingDaysList = PropertyWorkingDaysManager.GetAllPropertyWorkingDays(); return(adminVWModel.WorkingDaysList = workingDaysList); }
public void _WorkDays(long propertyId, AdminVWModel adminVwModel, PropertyWorkingDays workDays) { adminVwModel.WorkingDays.PropertyId = propertyId; var serviceId = PropertyWorkingDaysManager.InsertPropertyWorkingDays(adminVwModel.WorkingDays); }
private List <Services> _loadServices(AdminVWModel adminVWModel) { List <Services> serviceList = ServiceManager.GetAllServices(); return(adminVWModel.ServiceList = serviceList); }
public ActionResult CreateServices(AdminVWModel adminVwModel) { _ServiceList(adminVwModel.PropertyService.PropertyId, adminVwModel, adminVwModel.ServiceList?.FindAll((x => x.IsSelected))); return(RedirectToAction("Index")); }
public ActionResult DeleteGalleryItem(long galleryId, AdminVWModel adminVwModel) { GalleryManager.DeleteGallery(galleryId); return(RedirectToAction("Properties")); }
public ActionResult UpdateVendor(AdminVWModel adminVwModel, int vendorId) { adminVwModel.Vendors = VendorManager.GetVendorById(vendorId); return(View("~/Views/Vendor/InsertVendor.cshtml", adminVwModel)); }
public ActionResult UpdateClient(AdminVWModel adminVwModel, int clientId) { adminVwModel.Clients = ClientManager.GetClientById(clientId); return(View("~/Views/Client/InsertClient.cshtml", adminVwModel)); }