/// <summary> /// Check if the Recognition is there /// </summary> /// <param name="starzId"></param> /// <returns></returns> public List <ProfileRecognition> GetRecognitionByStarsId(string starzId) { ProfileRecognitionRepository _profileR = new ProfileRecognitionRepository(); return(_profileR.GetRecognitionByStarsId(starzId)); }
/// <summary> /// Update the data when the entry already exist /// </summary> /// <param name="model"></param> /// <returns></returns> public bool Update(ProfileRecognition model) { ProfileRecognitionRepository _profileR = new ProfileRecognitionRepository(); return(_profileR.Update(model)); }
/// <summary> /// get all the data using the starz Id as parameter /// </summary> /// <param name="starzId"></param> /// <returns> list of recognitions</returns> public List <RecognitionModel> GetAll(string starzId) { ProfileRecognitionRepository _profileR = new ProfileRecognitionRepository(); return(_profileR.GetAll(starzId)); }