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" }); } }
public string Add(Hall item) { return(_halldao.Add(item)); }