public async Task <HttpResult <List <ToggleMessageResponse> > > GetAll() { var retorno = new HttpResult <List <ToggleMessageResponse> >(); retorno.Response = new List <ToggleMessageResponse>(); var retornoTaskGetAll = ToggleServiceTask.GetAll(); retorno.Response = MapToResponseToggleMessage.MapToListToggleMessageResponse(retornoTaskGetAll.Result.Response); retorno.Message = retornoTaskGetAll.Result.Message; return(retorno); }
private Task <HttpResult <List <Toggle> > > GetAll() { return(task.GetAll()); }