예제 #1
0
        private List <PropertyWorkingDays> _loadWorkingDays(AdminVWModel adminVWModel)
        {
            List <PropertyWorkingDays> workingDaysList = PropertyWorkingDaysManager.GetAllPropertyWorkingDays();

            return(adminVWModel.WorkingDaysList = workingDaysList);
        }
예제 #2
0
 public void _WorkDays(long propertyId, AdminVWModel adminVwModel, PropertyWorkingDays workDays)
 {
     adminVwModel.WorkingDays.PropertyId = propertyId;
     var serviceId = PropertyWorkingDaysManager.InsertPropertyWorkingDays(adminVwModel.WorkingDays);
 }
예제 #3
0
        private List <Services> _loadServices(AdminVWModel adminVWModel)
        {
            List <Services> serviceList = ServiceManager.GetAllServices();

            return(adminVWModel.ServiceList = serviceList);
        }
예제 #4
0
 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"));
 }
예제 #6
0
 public ActionResult UpdateVendor(AdminVWModel adminVwModel, int vendorId)
 {
     adminVwModel.Vendors = VendorManager.GetVendorById(vendorId);
     return(View("~/Views/Vendor/InsertVendor.cshtml", adminVwModel));
 }
예제 #7
0
 public ActionResult UpdateClient(AdminVWModel adminVwModel, int clientId)
 {
     adminVwModel.Clients = ClientManager.GetClientById(clientId);
     return(View("~/Views/Client/InsertClient.cshtml", adminVwModel));
 }