/// <summary> /// gets an activity by id /// </summary> /// <param name="id">id of activity</param> /// <returns>DataRow of activity</returns> public static DataRow GetActivity(int id) { return(DalHelper.GetRowById(id, "UserActivity")); }
/// <summary> /// gets a game by id /// </summary> /// <param name="id">id of game</param> /// <returns>datarow of game</returns> public static DataRow GetGame(int id) { return(DalHelper.GetRowById(id, "Games")); }
/// <summary> /// Gets a user by id /// </summary> /// <param name="user">id of user</param> /// <returns>DataRow of user data</returns> public static DataRow GetUserById(int user) { return(DalHelper.GetRowById(user, "Users")); }
/// <summary> /// Returns a developer from id /// </summary> /// <param name="id">id of developer</param> /// <returns>DataRow of developer</returns> public static DataRow GetDeveloper(int id) { return(DalHelper.GetRowById(id, "Developer")); }
/// <summary> /// gets a photo by id and type /// </summary> /// <param name="id">id of photo</param> /// <param name="type">type of photo</param> /// <returns>DataRow of photo</returns> public static DataRow GetPhoto(int id, PhotoType type) { return(DalHelper.GetRowById(id, type.ToString())); }