Exemple #1
0
        public ActionResult Edit(TagTypeViewModel tagTypeViewModel)
        {
            if (ModelState.IsValid)
            {
                BaseTagType tagType = Mapper.Map <TagTypeViewModel, BaseTagType>(tagTypeViewModel);
                _tagTypeRest.Put(tagType);
            }

            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public void Put(BaseTagType tagType)
        {
            RestRequest request = new RestRequest("api/tagtype", Method.PUT);

            PostOrPut(request, tagType);
        }
Exemple #3
0
        private TagTypeViewModel Get(int id)
        {
            BaseTagType tagType = _tagTypeRest.Get(id);

            return(Mapper.Map <BaseTagType, TagTypeViewModel>(tagType));
        }
 public void Put(BaseTagType tagType)
 {
     RestRequest request = new RestRequest("api/tagtype", Method.PUT);
     PostOrPut(request, tagType);
 }