public int AddValidVendor(Vendors vendor) { try { int result = services.AddVendor(vendor); return(result); } catch (SqlException) { throw; } catch (Exception) { throw; } }