Example #1
0
 public void EditAward(Guid id, string Title, byte[] Image, bool flag_image)
 {
     if (flag_image)
     {
         Awards.FindAll(x => x.Id == id).ForEach(s => { s.Title = Title; s.Image = Image; s.ImageName = Guid.NewGuid(); });
     }
     else
     {
         Awards.FindAll(x => x.Id == id).ForEach(s => { s.Title = Title; });
     }
 }