public ReturnViewModel Save([FromBody] ApplicationDTO application) { try { var app = AutoMapper.Mapper.Map <ApplicationDTO, Infrastructure.Domain.Data.Applications>(application); _application.Create(app); return(new ReturnViewModel(HttpStatusCode.OK, "Save successfully", false)); } catch (System.Exception ex) { return(new ReturnViewModel(HttpStatusCode.BadRequest, ex.Message, true)); } }