コード例 #1
0
        // api/Employer/GetEmployerById
        public IHttpActionResult Get(string id)
        {
            EmployerService employerService = CreateEmployerService();
            var             employer        = employerService.GetEmployerById(id);

            if (employer == null)
            {
                return(NotFound());
            }

            return(Ok(employer));
        }
コード例 #2
0
        public ActionResult Edit(int id)
        {
            var vm = _employerService.GetEmployerById(id);

            return(PartialView(vm));
        }
コード例 #3
0
        public ActionResult _GetEmployerDetails(int id)
        {
            var emp = _employerService.GetEmployerById(id);

            return(PartialView("_DisplayEmployerDetailsBody", emp));
        }