public static new UserListViewModel ForUserPage(string username, int Page_ID) { IInfastructureService infastructure = new InfastructureService(); IProfileService service = new ProfileService(); var allUsers = new List<User_ProfileInfo>(); var profiles = service.Profile_GetList(); foreach (var profile in profiles) { var info = new User_ProfileInfo { profile = profile, enemies = service.Profile_GetUserWhoHaveBlocked(profile.username).Count(), friendlies = service.Profile_GetUserWhoHaveFriended(profile.username).Count(), friended = service.Profile_GetFriended(profile.username).Count(), hated = service.Profile_GetBlocked(profile.username).Count() }; allUsers.Add(info); } return new UserListViewModel { allUsers = allUsers, navSection = infastructure.PageStructure_GetBySelected(Page_ID), avatars = service.Avatar_GetList(), profile = service.Profile_GetByUser(username) }; }
public static HomeIndexViewModel ForUserPage(string username, string Url) { IInfastructureService infastructure = new InfastructureService(); return new HomeIndexViewModel { navSection = infastructure.PageStructure_GetBySelected(32) }; }
public static HomeIndexViewModel ForUserPage(string username, int Page_ID) { IInfastructureService infastructure = new InfastructureService(); IPhonebookService provider = new PhonebookService(); return new HomeIndexViewModel { navSection = infastructure.PageStructure_GetBySelected(Page_ID) }; }
public static HomeIndexViewModel ForUserPage(string username, int Page_ID) { IInfastructureService infastructure = new InfastructureService(); IDrawingService service = new DrawingService(); return new HomeIndexViewModel { navSection = infastructure.PageStructure_GetBySelected(Page_ID), Images = service.Image_GetByUser(username) }; }
public static HomeIndexViewModel ForUserPage(string username, int Page_ID) { IInfastructureService infastructure = new InfastructureService(); IPlannerService plannerService = new PlannerService(); return new HomeIndexViewModel { navSection = infastructure.PageStructure_GetBySelected(Page_ID), events = plannerService.Event_GetByUser(username) }; }
public static ImageViewModel ForImageUserPage(int Image_ID, string username, int Page_ID) { IDrawingService service = new DrawingService(); IInfastructureService infastructure = new InfastructureService(); return new ImageViewModel { navSection = infastructure.PageStructure_GetBySelected(Page_ID), image = service.Image_GetTarget(username, Image_ID) ?? new DImage() }; }
public static HomeIndexViewModel ForUserPage(string username, int Page_ID) { IInfastructureService infastructure = new InfastructureService(); IProfileService service = new ProfileService(); return new HomeIndexViewModel { navSection = infastructure.PageStructure_GetBySelected(Page_ID), avatars = service.Avatar_GetList(), profile = service.Profile_GetByUser(username) }; }
public static HomeIndexViewModel ForUserPage(string username, int Page_ID) { IInfastructureService infastructure = new InfastructureService(); IMailboxService provider = new MailboxService(); IProfileService profiler = new ProfileService(); return new HomeIndexViewModel { username = username, emails = provider.Email_GetByUser(username), blockedUsers = profiler.Blocked_User_GetByUser(username), friendedUsers = profiler.Friended_User_GetByUser(username), navSection = infastructure.PageStructure_GetBySelected(Page_ID) }; }