public void UpdateContract(int id, string Curency, int Amount, int ClientId, int SalePeopleId, int AutoId) { Contract user = new Contract() { Id = id, Curency = Curency, Amount = Amount, ClientId = ClientId, SalePeopleId = SalePeopleId, AutoId = AutoId }; contractLogic.Update(user); }