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); }
private static void Refresh(DbContextModel db) { //db.Roles.RemoveRange(db.Roles.ToList()); }