Example #1
0
 // GET: api/CodigoEventoes
 public IEnumerable <CodigoEvento> GetCodigoEvento()
 {
     return(_codigoService.GetAll());
 }
Example #2
0
 public async Task <JsonResult> Get()
 {
     return(Json(Mapper.Map <List <CodigoDTO> >(await CodigoService.GetAll()), JsonRequestBehavior.AllowGet));
 }