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); }
public int Add(Data.Models.SubAssembly subAssembly) { _subAssemblyRepository.Insert(subAssembly); return(subAssembly.Id); }