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 })); }
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); }
public bool Edit(InputFavoriteDto dto) {//LanguageHelper Language, return(_FavoriteService.Edit(dto, getCurrentUserGuid())); // return _languageService.Add(dto); }