Ejemplo n.º 1
0
 public bool SaveDepartmentPro(int systemId, string companyId, string departmentId, string departmentName, string parentId, string description, bool state)
 {
     try
     {
         int    errCode = -1;
         string errMsg  = "fail";
         var    result  = CTMSContext.SP_Add_Institution_Department(systemId, companyId, departmentId, departmentName, parentId, description, state, out errCode, out errMsg);
         if (errCode != 0)
         {
             throw new Exception(errMsg);
         }
         return(errCode == 0 ? true : false);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }