Example #1
0
        public IHttpActionResult RemovePersonFromTable(int personId)
        {
            using (var scope = _contextScopeFactory.CreateReadOnly())
            {
                var result = _seatingService.RemovePersonFromTable(personId);

                if (result)
                {
                    return(Ok());
                }

                return(NotFound());
            }
        }