示例#1
0
        public IActionResult RemoveUser(string id, string page = "1")
        {
            Result result = new Result("Kullanıcı silindi", true, "");

            try
            {
                UserCore.RemoveUsers(id);
            }
            catch (Exception ex)
            {
                result = new Result("Kullanıcı silinirken bir hata oluştu", false, ex.Message);
            }
            return(RedirectToAction("Users", new { id = id, page = page }));
        }