Exemple #1
0
 public void Add(Hall hall, out ICollection <Error> listError)
 {
     listError = new List <Error>();
     try
     {
         _hallDao.Add(hall);
     }
     catch (UniqueIdentifierException ex)
     {
         listError.Add(new Error
         {
             Message = ex.Message
         });
     }
     catch
     {
         listError.Add(new Error
         {
             Message = "Failed to add hall, please try again"
         });
     }
 }
Exemple #2
0
 public string Add(Hall item)
 {
     return(_halldao.Add(item));
 }