Exemple #1
0
        // GET: Operador/Details/5
        public ActionResult Details(int id)
        {
            var operadorViewModel = Mapper.Map <Operador, OperadorViewModel>
                                        (_operadorAppServices.GetById(id));

            return(View(operadorViewModel));
        }
Exemple #2
0
        public HttpResponseMessage Get(int id)
        {
            var result = _operadorAppServices.GetById(id);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }