Пример #1
0
        public void Update(Data.Models.SubAssembly subAssembly)
        {
            //Data.Models.Line oldLine = _userRepository.Table.Where(w => w.Id == line.Id).FirstOrDefault();

            //if (oldLine != null)
            //{

            //}
            //else
            //    return 0;
            _subAssemblyRepository.Update(subAssembly);
        }
Пример #2
0
 public int Add(Data.Models.SubAssembly subAssembly)
 {
     _subAssemblyRepository.Insert(subAssembly);
     return(subAssembly.Id);
 }