Ejemplo n.º 1
0
        public JsonResult Delete(Int32 Id)
        {
            string auxMsgErro    = string.Empty;
            string auxMsgSucesso = string.Empty;

            LoteRpsTO obj = new LoteRpsTO
            {
                Id = Id
            };

            if (LoteRpsDAL.Delete(obj) == null)
            {
                auxMsgErro = "Falha ao tentar excluir o registro, favor tente novamente";
            }
            else
            {
                auxMsgSucesso = "Registro excluído com sucesso";
            }

            return(Json(new { msgErro = auxMsgErro, msgSucesso = auxMsgSucesso }));
        }