Пример #1
0
        // 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);
        }
Пример #2
0
 // Spara en borttagen utrustning i Databasen
 public string CreateRemovedEqm(RemovedEqm remEqm)
 {
     _context.Add(remEqm);
     _context.SaveChanges();
     return("OK");
 }