public void Add_Mother(Mother mother1) { for (int i = 0; i < 7; i++)//check end isnt smaller then begining { if (mother1.Wanted_Hours[1, i] < mother1.Wanted_Hours[0, i]) { throw new Exception("wrong hours format"); } } my_dal.Add_Mother(mother1); }