public ActionResult Edit(Guid id) { var contactDetail = _contactApplicationService.GetDetail(id); if (contactDetail == null) { return(HttpNotFound()); } return(View(contactDetail)); }
public HttpResponseMessage Get(Guid id) { var contactDetail = _contactApplicationService.GetDetail(id); if (contactDetail == null) { return(Request.CreateResponse(HttpStatusCode.NoContent)); } return(Request.CreateResponse(HttpStatusCode.OK, contactDetail)); }