Example #1
0
        public void DeleteCareer(int id)
        {
            string coach = HttpContext.Session.GetString("User_Login");
            CoachProfileService service = new CoachProfileService(services);

            service.DeleteCareer(id, coach);
        }
Example #2
0
        public CoachProfileDTO Info(string login)
        {
            CoachProfileService service = new CoachProfileService(services);
            CoachProfileDTO     result  = service.GetInfo(login);

            return(result);
        }
Example #3
0
        public void Edit(CoachDTO new_me)
        {
            string login = HttpContext.Session.GetString("User_Login");

            if (login == new_me.Login)
            {
                CoachProfileService service = new CoachProfileService(services);
                service.EditProfile(new_me);
            }
        }
Example #4
0
        public void AddCareer(CareerDTO career)
        {
            AuthenticationService authentication = new AuthenticationService(services);
            string coach = HttpContext.Session.GetString("User_Login");

            if (authentication.IsCoach(coach))
            {
                CoachProfileService service = new CoachProfileService(services);
                service.AddCareer(career, coach);
            }
        }
Example #5
0
        public List <CareerDTO> Career(string login)
        {
            CoachProfileService service = new CoachProfileService(services);

            return(service.GetCareer(login));
        }