public IActionResult GetAll(BusinessActionRequest request) { return(new OkObjectResult(_actionService.GetAll(request))); }
public async Task <List <BusinessActionViewModel> > GetAll(BusinessActionRequest request) { return(new BusinessActionViewModel().Map(await _repository.FindAll(x => x.BusinessId == request.BusinessId)).ToList()); }
public async Task <IActionResult> GetAll(BusinessActionRequest request) { return(new OkObjectResult(await _actionService.GetAll(request))); }