public Model.Models.Computer Add(Model.Models.Computer computer) { computer.CreatedDate = DateTime.Now; //producerType.CreatedBy = ad //Todo: Add CreatedBy computer.UpdatedDate = DateTime.Now; //producerType.UpdatedBy = ad //Todo: Add CreatedBy computer.IsBusyNow = false; return(_computerRepository.Add(computer)); }
public void Create(string name) { var computer = Persistence.Models.Computer.Create(name, _user); _computerRepository.Add(computer); }