public SuccessOperationModel Query(SuccessOperationRequest request) { var productName = request.Operation == OperationType.Delete ? "" : _service.GetById(request.Id).Name; return new SuccessOperationModel { HomeUrl = _registry.UrlFor<HomeQueryModel>(), ProductName = productName, Id = request.Id, Operation = request.Operation }; }
public SuccessOperationModel Query(SuccessOperationRequest request) { var productName = request.Operation == OperationType.Delete ? "" : _service.GetById(request.Id).Name; return(new SuccessOperationModel { HomeUrl = _registry.UrlFor <HomeQueryModel>(), ProductName = productName, Id = request.Id, Operation = request.Operation }); }