public AjaxResult DelMulCustomers([FromBody] List <Guid> customerids) { var _ajaxResult = new AjaxResult(); try { _CustomerDL.DelMulCustomer(customerids); } catch (Exception ex) { _ajaxResult.Success = false; _ajaxResult.Data = ex; _ajaxResult.Message = Resources.errorVN; } return(_ajaxResult); }
/// <summary> /// Hàm thực hiện chức năng xóa nhiều khách hàng /// </summary> /// <param name="_customerIDs"></param> /// <returns></returns> public AjaxResult DeleteMultiple(List <Guid> _customerIDs) { AjaxResult ajaxResult = new AjaxResult(); try { CustomerDL.DelMulCustomer(_customerIDs); ajaxResult.Message = Resources.successVN; ajaxResult.Data.totalCustomer = CustomerDL.GetNumberOfCustomer(); } catch (Exception ex) { ajaxResult.Data = ex; ajaxResult.Success = false; ajaxResult.Message = Resources.errorVN; } return(ajaxResult); }