示例#1
0
        public IHttpActionResult RemoveNote(int noteId)
        {
            try
            {
                bool result = _planService.DeleteNote(noteId);

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

                return(InternalServerError(ex));
            }
        }