示例#1
0
 public void Update(string nameID, string name, string description, string coverIMG, decimal price, string publisher, int year, int month, int day)
 {
     gameUpdate              = _services.GetGameByName(name);
     gameUpdate.Name         = name;
     gameUpdate.Description  = description;
     gameUpdate.CoverImgPath = coverIMG;
     gameUpdate.ReleaseDate  = new DateTime(year, month, day);
     gameUpdate.Price        = price;
     gameUpdate.Publisher    = publisher;
     _services.SaveGameChanges();
 }