public Computer UpdateComputer(int computerId, string name) { Computer computer = repository.GetComputer(computerId).Result; computer.Name = name; return(repository.UpdateComputer(computer).Result); }
public Computer UpdateComputer(int computerId, string name) { Computer computer = repository.GetComputer(computerId).Result; computer.Name = name; return(repository.UpdateComputer(computer).Result); }