コード例 #1
0
        public ActionResult Delete(int id)
        {
            var service = new RepService();
            var model   = service.GetRepByID(id);

            return(View(model));
        }
コード例 #2
0
        public ActionResult Edit(int id)

        {
            var service = new RepService();
            var detail  = service.GetRepByID(id);
            var model   =
                new RepDetail
            {
                ID    = detail.ID,
                Name  = detail.Name,
                Email = detail.Email,
            };

            return(View(model));
        }
コード例 #3
0
        public IHttpActionResult Get(int id)
        {
            var rep = repService.GetRepByID(id);

            return(Ok(rep));
        }