public IActionResult UpdateBrand(int id) { var brand = _reposBrand.GetBrand(id); BrandInputViewModel model = new BrandInputViewModel { Id = brand.Id, Name = brand.Name, PhotoPath = brand.Photo }; return(View(model)); }
public string GetSystemDetails() { IBrand brand = computerFactory.Brand(); IProcessor processor = computerFactory.Processor(); ISystemType systemType = computerFactory.SystemType(); string returnValue = string.Format("{0} {1} {2}", brand.GetBrand(), processor.GetProcessor(), systemType.GetSystemType()); return returnValue; }
public string GetSystemDetails() { IBrand brand = _IComputerFactory.Brand(); IProcessor processor = _IComputerFactory.Processor(); ISystemType systemType = _IComputerFactory.SystemType(); string returnValue = string.Format($"{brand.GetBrand()} - {processor.GetProcessor()} - {systemType.GetSystemType()}"); return(returnValue); }
public string GetSystemDetails() { IBrand iBrand = _IComputerFactory.Brand(); IProcessor iProcessor = _IComputerFactory.Procesor(); ISystemType iSystemType = _IComputerFactory.SystemType(); string returnValue = string.Format("{0} {1} {2}", iBrand.GetBrand(), iProcessor.GetProcessor(), iSystemType.GetSystemType()); return(returnValue); }