public ActionResult AddClassifyToFavorites(Guid UserId, int Id)
        {
            InputFavoriteDto dto = new InputFavoriteDto();

            dto.ClassifyId = Id;

            var g = _ifavoriteService.Add(dto, UserId);

            return(RedirectToAction("FavoriteClassify", new { UserId = UserId }));
        }
Esempio n. 2
0
        public int Add(InputFavoriteDto dto)
        {//LanguageHelper Language,
            if (!_FavoriteService.IsClassifyIdExist_ForThisUser_InFavorite(getCurrentUserGuid(), dto.ClassifyId))
            {
                return(_FavoriteService.Add(dto, getCurrentUserGuid()));
            }

            throw new HttpResponseException(NotFoundMessage(FavoriteResource.Classify_is_added));

            // return _languageService.Add(dto);
        }
Esempio n. 3
0
 public bool Edit(InputFavoriteDto dto)
 {//LanguageHelper Language,
     return(_FavoriteService.Edit(dto, getCurrentUserGuid()));
     // return _languageService.Add(dto);
 }