Ejemplo n.º 1
0
        //GET - OK
        public async Task <ReturnViewModel> Get()
        {
            try
            {
                var data = await _application.Get();

                return(new ReturnViewModel(HttpStatusCode.OK,
                                           data,
                                           false));
            }
            catch (System.Exception ex)
            {
                return(new ReturnViewModel(HttpStatusCode.BadRequest, ex.Message, true));
            }
        }