Example #1
0
        public ActionResult OpenApartment(int?id)
        {
            if (id != null)
            {
                try
                {
                    apartmentService.OpenApartment(id);

                    return(RedirectToAction("Index"));
                }
                catch (ValidationException ex)
                {
                    //Log ex
                }
            }

            return(HttpNotFound());
        }