public ActionResult <List <Transaction> > GetTransactionsForCorporateAction([FromServices] IPortfolioCorporateActionsService service, Guid stockId, Guid actionId) { var result = service.GetTransactionsForCorporateAction(stockId, actionId); return(result.ToActionResult <List <Transaction> >()); }
public ActionResult <CorporateActionsResponse> GetCorporateActions([FromServices] IPortfolioCorporateActionsService service, [FromRoute] Guid id) { var result = service.GetCorporateActions(id); return(result.ToActionResult <CorporateActionsResponse>()); }
public ActionResult <CorporateActionsResponse> GetCorporateActions([FromServices] IPortfolioCorporateActionsService service) { var result = service.GetCorporateActions(); return(result.ToActionResult()); }