Esempio n. 1
0
 public void SubmitForm(DirectoryEntity entity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         entity.Modify(keyValue);
         service.Update(entity);
     }
     else
     {
         entity.Create();
         service.Insert(entity);
     }
 }
 public Directory Update(Directory directory)
 {
     return(_directoryRepository.Update(directory));
 }