public void AddAutor(FormCollection collection)
 {
     var item = _repository.Find(i=>i.FirstName.Equals(collection["FirstName"])&& i.SecondName.Equals(collection["SecondName"]));
     if (item == null)
     {
         item = new Autor {FirstName = collection["FirstName"], SecondName = collection["SecondName"]};
         _repository.Add(item);
     }
 }
 public void UpdateAutor(Autor item)
 {
     _repository.Update(item);
 }
 public void AddAutor(Autor newItem)
 {
     _repository.Add(newItem);
 }