// GET: Colaborador/Details/5 public ActionResult Details(int id) { var colaboradorViewModel = Mapper.Map <Colaborador, ColaboradorViewModel> (_colaboradorAppServices.GetById(id)); return(View(colaboradorViewModel)); }
public HttpResponseMessage Get(int id) { var result = _colaboradorAppServices.GetById(id); return(Request.CreateResponse(HttpStatusCode.OK, result)); }