// POST - OK public async Task <ReturnViewModel> Post([FromBody] FilterDTO filter) { try { var data = await _application.GetByName(filter.Name); return(new ReturnViewModel(HttpStatusCode.OK, data, false)); } catch (System.Exception ex) { return(new ReturnViewModel(HttpStatusCode.BadRequest, ex.Message, true)); } }