public bool DeleteLossReason(LossReason lossReason) { if (lossReason == null) return false; _unitOfWork.LossReasonRepository.Delete(lossReason); _unitOfWork.Save(); return true; }
private LossReason BindLossReason(LossReasonModel model) { if (model == null) return null; var lossReason = new LossReason() { LossReasonId = model.LossReasonId, LossReasonAm = model.LossReasonAm, LossReasonEg = model.LossReasonEg, LossReasonCodeAm = model.LossReasonCodeAm, LossReasonCodeEg = model.LossReasonCodeEg, Description = model.Description }; return lossReason; }
public bool EditLossReason(LossReason lossReason) { _unitOfWork.LossReasonRepository.Edit(lossReason); _unitOfWork.Save(); return true; }
public bool AddLossReason(LossReason lossReason) { _unitOfWork.LossReasonRepository.Add(lossReason); _unitOfWork.Save(); return true; }