Exemplo n.º 1
0
 public IResult UpdateCurrency(Guid currencyId, UpdateCurrencyInfoRequest request, Guid principal)
 {
     return(_currencyRepository.UpdateInfo(currencyId, request, principal).Success(() =>
     {
         _session.SaveChanges();
         return Result.Success();
     }));
 }
Exemplo n.º 2
0
 public Result <Currency> UpdateInfo(Guid id, UpdateCurrencyInfoRequest request, Guid principal)
 {
     return(ById(id).Success(v =>
     {
         _mapper.Map(request, v);
         v.ModifiedOn = DateTime.UtcNow;
         v.ModifiedBy = principal;
         return Result.Success(v);
     }));
 }