public async Task <IHttpActionResult> ActiveBuildingById([FromUri] int id) { { //instantiate the service BuildingService service = CreateBuildingService(); if (await service.ActiveBuildingById(id) == false) { return(InternalServerError()); } return(Ok("Active Status Updated")); //200 with custom message } }