Exemple #1
0
        public IHttpActionResult RemoveLocationToPlan(int planId, int locationId)
        {
            try
            {
                bool result = _planService.DeletePlanLocation(planId, locationId);

                if (result)
                {
                    return(Ok());
                }
                return(BadRequest());
            }
            catch (Exception ex)
            {
                _loggingService.Write(GetType().Name, nameof(AddLocationToPlan), ex);

                return(InternalServerError(ex));
            }
        }