Exemplo n.º 1
0
        public JsonResult DeleteAccount(int AccountsID)
        {
            string _Del = null;

            try
            {
                KeystoneProject.Buisness_Logic.MasterFinacialAccounts.BL_Accounts objdb = new BL_Accounts();
                Accounts objSG = new Models.MasterFinacialAccounts.Accounts();

                int DependaincyName = objdb.DeleteAccounts(AccountsID);

                if (DependaincyName == 1)
                {
                    _Del = "Account Deleted Successfully";
                }
                else
                {
                    _Del = "Can not Delete";
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(new JsonResult {
                Data = _Del, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }