Example #1
0
 public ActionResult Index(InfoCaixa item)
 {
     try
     {
         if (ModelState.IsValid)
         {
             service.Gravar(item);
             return(Json(new { success = true }));
         }
         return(View(item));
     }
     catch (Exception e)
     {
         return(Json(new { success = false, error = e.Message }));
     }
 }
Example #2
0
        // GET: Erp/InfoCaixa
        public ActionResult Index()
        {
            InfoCaixa item = info.GetInfoCaixa(GetIdEmpresa(), GetIdUsuario());

            return(View(item));
        }