コード例 #1
0
 public JsonResult Create(Department department)
 {
     try
     {
         department = _iFDepartment.Create(department);
         return(Json(""));
     }
     catch (Exception ex)
     {
         return(Json(ex));
     }
 }
コード例 #2
0
        public ActionResult Create(Department department)
        {
            var createdDepartment = _iFDepartment.Create(UserId, department);

            return(RedirectToAction("Index"));
        }