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("/"); }
public object Any(LockAllUsers request) { Db.UpdateOnly(() => new UserAuth { LockedDate = DateTime.UtcNow }, where : x => x.LockedDate == null); return(HttpResult.Redirect("/")); }