コード例 #1
0
        public ActionResult Edit(Guid id)
        {
            var contactDetail = _contactApplicationService.GetDetail(id);

            if (contactDetail == null)
            {
                return(HttpNotFound());
            }
            return(View(contactDetail));
        }
コード例 #2
0
        public HttpResponseMessage Get(Guid id)
        {
            var contactDetail = _contactApplicationService.GetDetail(id);

            if (contactDetail == null)
            {
                return(Request.CreateResponse(HttpStatusCode.NoContent));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, contactDetail));
        }