Example #1
0
 public LossService(AppUnitOfWork appUOW, ILossAssetService LossAssetSrv,
                    IMemoryCacheProvider cacheProvider)
 {
     _appUow        = appUOW;
     _LossRepo      = appUOW.LossRepo;
     _LossAssetSrv  = LossAssetSrv;
     _cacheProvider = cacheProvider;
 }
 public virtual async Task <JsonResult> DeleteAsset([FromServices] ILossAssetService assetSrv, int assetId)
 => Json(await assetSrv.DeleteAsync(assetId));