Пример #1
0
 public ActionResult DeleteClientThirdPartyAdministratorByID(int _ClientTPAID, int _tpaID, string _tpaType)
 {
     try
     {
         if (_tpaType.ToLower() == GlobalConst.TableAbbreviation.Tpab)
         {
             _iClientService.deleteClientThirdPartyAdministratorBranch(_ClientTPAID);
         }
         else
         {
             _iClientService.deleteClientThirdPartyAdministratorBranchByTPAID(_tpaID);
             _iClientService.deleteClientThirdPartyAdministrator(_ClientTPAID);
         }
         return(Json(GlobalConst.Message.DeleteMessage));
     }
     catch
     {
         return(Json(GlobalConst.Message.ErrorMessage));
     }
 }