public ActionResult Edit(TagTypeViewModel tagTypeViewModel) { if (ModelState.IsValid) { BaseTagType tagType = Mapper.Map <TagTypeViewModel, BaseTagType>(tagTypeViewModel); _tagTypeRest.Put(tagType); } return(RedirectToAction("Index")); }
public void Put(BaseTagType tagType) { RestRequest request = new RestRequest("api/tagtype", Method.PUT); PostOrPut(request, tagType); }
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); }