示例#1
0
        // GET: Operador
        public ActionResult Index()
        {
            var operadorViewModel = Mapper.Map <ICollection <Operador>, ICollection <OperadorViewModel> >
                                        (_operadorAppServices.GetAll());

            return(View(operadorViewModel));
        }
示例#2
0
        public HttpResponseMessage Get()
        {
            var result = _operadorAppServices.GetAll();

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