示例#1
0
 public bool DeleteLossReason(LossReason lossReason)
 {
     if (lossReason == null) return false;
     _unitOfWork.LossReasonRepository.Delete(lossReason);
     _unitOfWork.Save();
     return true;
 }
示例#2
0
 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;
 }
示例#3
0
 public bool EditLossReason(LossReason lossReason)
 {
     _unitOfWork.LossReasonRepository.Edit(lossReason);
     _unitOfWork.Save();
     return true;
 }
示例#4
0
 public bool AddLossReason(LossReason lossReason)
 {
     _unitOfWork.LossReasonRepository.Add(lossReason);
     _unitOfWork.Save();
     return true;
 }