Example #1
0
 public void CreateRequisition(Requisition requisition)
 {
     _unitOfWork.BeginTransaction();
     try
     {
         requisition.AddRequisitionEx(requisition.RequisitionExt);
         _requisitionRepo.Create(requisition);
         _unitOfWork.Commit();
     }
     catch
     {
         _unitOfWork.Rollback();
     }
 }
 public virtual async Task Create(TBL item)
 {
     await _repository.Create(_mapper.Map <TDA>(item)).ConfigureAwait(false);
 }