示例#1
0
        public static List <User> GetUsers(DbContextModel db)
        {
            var firstUsers = new List <User>()
            {
                new User
                {
                    MobileNumber = "09126540027",
                    Role         = db.Roles.FirstOrDefault(r => r.Name.ToLower() == "admin"),
                    Status       = (int)UserStatus.Active,
                    RefreshToken = Guid.NewGuid().ToString()
                }
            };

            return(firstUsers);
        }
示例#2
0
 private static void Refresh(DbContextModel db)
 {
     //db.Roles.RemoveRange(db.Roles.ToList());
 }