示例#1
0
        public ActionResult ExcluirConfirmado(int id)
        {
            OldSchoolDataBase <Cliente> .ExcluirPorId(filePath, id);

            return(RedirectToAction("Index"));
        }
示例#2
0
 public ActionResult Excluir(int id)
 {
     return(View(OldSchoolDataBase <Cliente> .Obter(filePath, id)));
 }
示例#3
0
        public ActionResult Inserir(Cliente cliente)
        {
            OldSchoolDataBase <Cliente> .Inserir(filePath, cliente);

            return(View(cliente));
        }
示例#4
0
        public ActionResult Alterar(int id, Cliente cliente)
        {
            OldSchoolDataBase <Cliente> .Alterar(filePath, id, cliente);

            return(View(cliente));
        }
示例#5
0
        public ActionResult Index()
        {
            _clientes = OldSchoolDataBase <Cliente> .ObterLista(filePath);

            return(View(_clientes));
        }