public HttpResponseMessage ChangeActiveBusiness([FromBody] bussinessDTO bussiness, string userId) { try { bool is_edit = BusinessService.ChangeActiveBusiness(bussiness.place_id, userId, bussiness.is_active); if (!is_edit) { return(Request.CreateResponse(HttpStatusCode.NotFound, "There is no business id as this in db")); } return(Request.CreateResponse(HttpStatusCode.OK, "The business was active")); } catch (Exception e) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, "There was an InternalServerError: " + e)); } }