Exemplo n.º 1
0
 public void SubmitTypeForm(BookTypeEntity bookTypeEntity, int?keyValue = null)
 {
     try
     {
         if (keyValue == null)
         {
             type.Insert(bookTypeEntity);
         }
         else
         {
             bookTypeEntity.ID = keyValue.Value;
             type.Update(bookTypeEntity);
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }