public string DeleteBank(int code) { try { var result = _bankBusiness.DeleteBank(code); return(JsonConvert.SerializeObject(new { Status = "OK", Record = result, Message = "Success" })); } catch (Exception ex) { AppConstMessage cm = _appConst.GetMessage(ex.Message); return(JsonConvert.SerializeObject(new { Status = "ERROR", Record = "", Message = cm.Message })); } }
public string DeleteBank(string code) { try { object result = null; result = _bankBusiness.DeleteBank(code); return(JsonConvert.SerializeObject(new { Result = "OK", Message = result })); } catch (Exception ex) { AppConstMessage cm = c.GetMessage(ex.Message); return(JsonConvert.SerializeObject(new { Result = "ERROR", Message = cm.Message })); } }