/// <summary> /// Creatd by: VXKHANH /// Created date: 26/3/2021 /// Hàm xóa khoản thu có kiểm tra khoản /// Nếu là 'Học phí' thì không cho phép xóa /// </summary> /// <typeparam name="entity"></typeparam> /// <param name="Id"></param> /// <returns></returns> public override ServiceResult DeleteObject <entity>(Guid Id) { if (CheckFeeName(Id) == true) { return(serviceResult); } var rowAffect = feeRepository.DeleteObject <entity>(Id); if (rowAffect <= 0) { serviceResult.Code = MISACode.NoRecordDelete; serviceResult.Data = rowAffect; serviceResult.Msg = Properties.Resources.ErrorMsg_DeleteFail; return(serviceResult); } else { serviceResult.Code = MISACode.Success; serviceResult.Data = rowAffect; serviceResult.Msg = Properties.Resources.DeleteSuccess; } return(serviceResult); }