public HttpResponseMessage Post([FromBody] EmployeeInfo value) { try { employeeService.CreateEmployee(value); return(Request.CreateResponse(HttpStatusCode.OK, "New record saved successfully.")); } catch { return(Request.CreateResponse(HttpStatusCode.InternalServerError, "An error occured while creating record.")); } }