// Spara data för en borttagen utrustning private void CopyToRemovedEqm(Equipment eqm, int remAdvId) { RemovedEqm remEqm = new RemovedEqm(); remEqm.RemovedAdId = remAdvId; remEqm.EqTypeId = eqm.EqTypeId; remEqm.Make = eqm.Make; remEqm.Model = eqm.Model; remEqm.Size = eqm.Size; remEqm.Length = eqm.Length; _marketData.CreateRemovedEqm(remEqm); }
// Spara en borttagen utrustning i Databasen public string CreateRemovedEqm(RemovedEqm remEqm) { _context.Add(remEqm); _context.SaveChanges(); return("OK"); }