public static PendingFriendRequest New(int userId, int friendUserId, string message) { PendingFriendRequest friendRequest = new PendingFriendRequest(); friendRequest.UserId = userId; friendRequest.FriendUserId = friendUserId; friendRequest.Message = message; return friendRequest; }
public static PendingFriendRequest New(int userId, int friendUserId, string message) { var friendRequest = new PendingFriendRequest { UserId = userId, FriendUserId = friendUserId, Message = message }; return(friendRequest); }
public static PendingFriendRequest New(int userId, int friendUserId, string message) { PendingFriendRequest friendRequest = new PendingFriendRequest(); friendRequest.UserId = userId; friendRequest.FriendUserId = friendUserId; friendRequest.Message = message; return(friendRequest); }
public void InsertFriendRequest(User owner, string requestedUsername, string message) { Insert(PendingFriendRequest.New(owner.UserId, QueryUser(requestedUsername).UserId, message)); }