public IHttpActionResult AddPersonToTable(int personId, int tableId) { using (var scope = _contextScopeFactory.CreateReadOnly()) { var result = _seatingService.AddPersonToTable(personId, tableId); if (result) { return(Ok()); } return(NotFound()); } }