Ejemplo n.º 1
0
        public static Models.Corkboard GetCorkboardPushpinIsOn(Pushpin pushpin)
        {
            var pushpinRows = DatabaseHelper.ExecuteQuery($"Select * From corkboard where owner_email = '{pushpin.Owner_Email}' AND title = '{pushpin.Title}'");

            return(CorkboardHelper.CreateCorkboardFromDataRow(pushpinRows.Rows[0]));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns whether this corkboard already exists for the user.
 /// </summary>
 public static bool CheckCorkboardExists(Models.User user, string title)
 {
     return(CorkboardHelper.GetUserCorkboards(user).Exists(x => x.Title.Equals(title)));
 }