Пример #1
0
        public ActionResult AddBookingNote(RichTextContentViewModel model, int id)
        {
            var success = true;

            try
            {
                if (!string.IsNullOrWhiteSpace(model.Text))
                {
                    bookingService.AddNote(id, model.Text);
                }
            }
            catch (Exception ex)
            {
                success = false;
                loggingService.LogException(ex);
            }

            SetFeedbackMessage(success,
                               "Booking note successfully added.",
                               "There has been an error whilst adding the booking note.");

            TempData["SetFocus"] = "pnlNotes";

            return(RedirectToAction("Edit", new { id = id }));
        }