public static void RenameKind(KindData kindData) { KindRepository kindRep = new KindRepository(); kindRep.Update(new Kind { Id = kindData.Id, Name = kindData.Name }); }
public static void DeleteKind(KindData selectedKind) { KindRepository kindRep = new KindRepository(); kindRep.Delete(selectedKind.Id); }