public void AddMake(Models.Tables.CarMake carMake) { User user = new User(); using (_ctx = new GuildCarsEntities()) { try { var userInfo = _ctx.GetUserByName(carMake.User); foreach (var u in userInfo) { user.Email = u.Email; } _ctx.AddVehicleMake(carMake.MakeName, user.Email); } catch (Exception ex) { throw ex; } } }