Пример #1
0
        // GET: EczaneNobet/Monitor/Details/5
        public ActionResult Details(int id)
        {
            if (id < 1)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var monitor = _monitorService.GetDetayById(id);

            if (monitor == null)
            {
                return(HttpNotFound());
            }
            return(View(monitor));
        }