public async Task <HttpResponseMessage> Post([FromBody] GenderDto gender) { try { var response = Request.CreateResponse(HttpStatusCode.OK, await logic.AddNewGender(gender)); logger.Info("Add new gender successful"); return(response); } catch (Exception ex) { LogHelper.ErrorLogger(logger, ex); return(Request.CreateResponse(HttpStatusCode.BadRequest)); } }