public static int CreateClient(Clients client) { try { using (VedantaEntities ve = new VedantaEntities()) { ve.AddToClients(client); return(ve.SaveChanges()); } } catch (Exception) { return(0); } }