예제 #1
0
        // GET: Staff/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            StaffModel staffModel = _staffService.GetById(id ?? 0);

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