// GET: api/Users public IEnumerable<MessagingUser> Get() { UserData userData = new UserData(); List<MessagingUser> messagingUserList = new List<MessagingUser>(); messagingUserList = userData.GetUsers(); return messagingUserList; }
// GET: api/CurrentUser public MessagingUser Get() { MessagingUser messagingUser = new MessagingUser(); UserData Userdata = new UserData(); messagingUser = Userdata.GetCurrentUser(); return messagingUser; }