Esempio n. 1
0
 public string GetDepartmentDetails(string Code)
 {
     try
     {
         DepartmentViewModel departmentObj = Mapper.Map <Department, DepartmentViewModel>(_departmentBusiness.GetDepartmentDetails(Code));
         return(JsonConvert.SerializeObject(new { Result = "OK", Records = departmentObj }));
     }
     catch (Exception ex)
     {
         AppConstMessage cm = c.GetMessage(ex.Message);
         return(JsonConvert.SerializeObject(new { Result = "ERROR", Message = cm.Message }));
     }
 }