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