Esempio n. 1
0
        public Wish Edit(Wish editWish)
        {
            Wish wish = _repo.GetWishByWishId(editWish.Id);

            if (wish == null)
            {
                throw new Exception("Invalid Id");
            }
            wish.Name        = editWish.Name;
            wish.Description = editWish.Description;
            wish.Img         = editWish.Img;
            _repo.Edit(wish);
            return(wish);
        }