Ejemplo n.º 1
0
 public string AddMachine(MachineDetail machineDetail)
 {
     machineDetail.ID = (++machineId).ToString();
     MachineDetails.Add(machineDetail);
     return(string.Format("add successfully {0}", machineDetail.Name));
 }
Ejemplo n.º 2
0
        public string GetMachineNameById(string machineId)
        {
            MachineDetail machineDetail = MachineDetails.Find(x => x.ID == machineId);

            return(machineDetail.Name);
        }
Ejemplo n.º 3
0
 public string AddMachine(MachineDetail machineDetail)
 {
     machineDetail.ID = (++machineId).ToString();
     MachineDetails.Add(machineDetail);
        return (string.Format("add successfully {0}",machineDetail.Name));
 }