Пример #1
0
        public object Any(LockAllUsers request)
        {
            Db.UpdateOnly(new UserAuth { LockedDate = DateTime.UtcNow },
                onlyFields: x => new { x.LockedDate },
                where: x => x.LockedDate == null);

            return HttpResult.Redirect("/");
        }
Пример #2
0
        public object Any(LockAllUsers request)
        {
            Db.UpdateOnly(() => new UserAuth {
                LockedDate = DateTime.UtcNow
            },
                          where : x => x.LockedDate == null);

            return(HttpResult.Redirect("/"));
        }