public int GetUserIdByName(string first, string last)
        {
            UserData ud = new UserData();

            List<UserModel> users = ud.GetUsers();

            foreach(var user in users)
            {
                if(user.FirstName.Equals(first) && user.LastName.Equals(last))
                {
                    return user.UserId;
                }
            }

            return -1;
        }
 public string getCreatedBy()
 {
     UserData ud = new UserData();
     List<UserModel> users = ud.GetUsers();
     foreach(var user in users)
     {
         if(user.UserId == CreatedById)
         {
             return user.FirstName + " " + user.LastName;
         }
     }
     return "";
 }
 public void GetUsers()
 {
     UserData ud = new UserData();
     Users = ud.GetUsers();
 }