public ActionResult Edit(int id) { CarregaSexos(); var contato = _business.GetById(id); return(View(contato)); }
public HttpResponseMessage GetById([FromUri] int id) { try { return(Request.CreateResponse(HttpStatusCode.OK, _business.GetById(id))); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }