예제 #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;
 }