private void Save(Customer model) { try { if (_id == 0) { getBusiness = new CustomerBusinessLayer(); getBusiness.Insert(model); } if (_id > 0) { getBusiness = new CustomerBusinessLayer(); getBusiness.Update(model); } FillGrid(); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }