public ActionResult Delete([FromServices] ImpostoDAO dao, int id)
 {
     try{
         dao.Delete(id);
         return(new StatusCodeResult(200));
     }catch (Exception e) {
         return(new StatusCodeResult(400));
     }
 }
 public ActionResult <Imposto> Put([FromServices] ImpostoDAO dao,
                                   [FromBody] Imposto value)
 {
     try{
         return(dao.Update(value));
     }catch (Exception e) {
         return(new StatusCodeResult(400));
     }
 }
 public ActionResult <Imposto> Get([FromServices] ImpostoDAO dao, int id)
 {
     try
     {
         return(dao.Get(id));
     }
     catch (Exception e) {
         return(new StatusCodeResult(400));
     }
 }
 public ActionResult <IEnumerable <Imposto> > Get([FromServices] ImpostoDAO dao)
 {
     try
     {
         return(dao.Get().ToList());
     }
     catch (Exception e) {
         return(new StatusCodeResult(400));
     }
 }