Ejemplo n.º 1
0
        public ActionResult CreateServiceOffice(string Description, string Municipality, string UserName)
        {
            ServiceOfficeModel ServiceOffModel = new ServiceOfficeModel();
            Service_Office     service_Office  = ServiceOffModel.CreateServiceOffice(Description, Municipality, UserName);

            return(PartialView(service_Office));
        }
Ejemplo n.º 2
0
        public ActionResult EditServiceOffice(int serviceOfficeId)
        {
            ServiceOfficeModel ServiceOffModel = new ServiceOfficeModel();
            Service_Office     service_Office  = ServiceOffModel.GetSpecificServiceOffice(serviceOfficeId);

            return(PartialView(service_Office));
        }
Ejemplo n.º 3
0
        // GET: ServiceOffice
        public ActionResult Index()
        {
            ServiceOfficeModel    ServiceOffModel = new ServiceOfficeModel();
            List <Service_Office> ListOfSerOffVm  = ServiceOffModel.GetListOfServiceOffices();

            return(PartialView(ListOfSerOffVm));
        }
Ejemplo n.º 4
0
        public ActionResult EditServiceOffice(Service_Office service_Office)
        {
            var UserName = Convert.ToString(Session["UserName"]);
            ServiceOfficeModel ServiceOffModel = new ServiceOfficeModel();

            ServiceOffModel.EditServiceOffice(service_Office, UserName);
            return(PartialView(service_Office));
        }