Пример #1
0
 public IActionResult GridViewReplacementWithInplaceEditing(FormCollection collection)
 {
     ArtistSkill skill = new ArtistSkill();
     skill.ArtistId = Int32.Parse(collection["item.ArtistId"]);
     skill.ArtistTalentId = Int32.Parse(collection["item.ArtistTalentId"]);
     skill.TalentName = collection["item.TalentName"];
     skill.SkillLevel = Int32.Parse(collection["item.SkillLevel"]);
     skill.Details = collection["item.Details"];
     skill.Styles = collection["item.Styles"];
     _Uow.ArtistSkillRepository.Update(skill);
     return RedirectToAction("GridViewReplacementWithInplaceEditing");
 }
 public bool IsSelected(ArtistSkill item)
 {
     if (item == null)
         return false;
     return item.ArtistTalentId == SelectedRow;
 }