コード例 #1
0
        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);
        }
コード例 #2
0
 private Task <HttpResult <List <Toggle> > > GetAll()
 {
     return(task.GetAll());
 }