示例#1
0
        public async Task <ActionResult> Edit(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Models.ServiceType serviceType = await _service.GetServiceType((Guid)id);

            if (serviceType == null)
            {
                return(HttpNotFound());
            }
            return(View(serviceType));
        }