public static int AddWXUsers(WXUsers model) { using (var entity = new BusEntities()) { var id = 0; try { entity.AddToWXUsers(model); entity.SaveChanges(); id = model.ID; } catch { } return(id); } }
public static int AddWXUsers(WXUsers model) { using (var entity = new BusEntities()) { var id = 0; try { entity.AddToWXUsers(model); entity.SaveChanges(); id = model.ID; } catch { } return(id); } }