Example #1
0
        public bool Put(Vote_ItemCatalog vote_ItemCatalog)
        {
            bool _OK = false;

            this._voteService.UpdateVote_ItemCatalog(vote_ItemCatalog);
            _OK = true;
            return(_OK);
        }
 public void Update(Vote_ItemCatalog instance)
 {
     if (instance == null)
     {
         throw new ArgumentNullException();
     }
     this._repository.Update(instance);
 }
 public string Create(Vote_ItemCatalog instance)
 {
     if (instance == null)
     {
         throw new ArgumentNullException();
     }
     return(this._repository.Create(instance));
 }
        public bool UpdateVote_ItemCatalog(Vote_ItemCatalog vote_ItemCatalog)
        {
            bool             _Success          = false;
            Vote_ItemCatalog _Vote_ItemCatalog = this._vote_ItemCatalogService.GetByID(vote_ItemCatalog.Id);

            _Vote_ItemCatalog.Name = vote_ItemCatalog.Name;
            this._vote_ItemCatalogService.Update(_Vote_ItemCatalog);
            _Success = true;
            return(_Success);
        }