public void DeleteCareer(int id) { string coach = HttpContext.Session.GetString("User_Login"); CoachProfileService service = new CoachProfileService(services); service.DeleteCareer(id, coach); }
public CoachProfileDTO Info(string login) { CoachProfileService service = new CoachProfileService(services); CoachProfileDTO result = service.GetInfo(login); return(result); }
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); } }
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); } }
public List <CareerDTO> Career(string login) { CoachProfileService service = new CoachProfileService(services); return(service.GetCareer(login)); }