示例#1
0
        public ActionResult Delete(string id, ConfigUser model)
        {
            id = Server.UrlDecode(id);
            var user = userReader.GetUser(id);

            ValidateAccess(user);
            userReader.DeleteUser(user);
            ViewBag.UserId = id;
            return(RedirectToAction("Index"));
        }
示例#2
0
 public HttpStatusCode Delete(int id)
 {
     return(_userFacade.DeleteUser(id));
 }