Exemplo n.º 1
0
        public ActionResult DesignationGet(int id)
        {
            DropBoxItem();
            var designationGet = _designationService.GetById(id).Data;

            return(View("DesignationGet", designationGet));
        }
Exemplo n.º 2
0
 public ActionResult Edit(string id)
 {
     try
     {
         Designation obj = iDesignation.GetById(id);
         return(PartialView(obj));
     }
     catch (Exception ex)
     {
         return(Json(new { ErrorCode = 1, Message = ex.Message }, JsonRequestBehavior.AllowGet));
     }
 }
 public JsonResult Get(long id)
 {
     return(new JsonResult {
         Data = _designationService.GetById(id)
     });
 }