public async Task<ActionResult> EditPerformer(Performer model) {
     model.DateModified = DateTime.Now;
     var img = WebImage.GetImageFromRequest("file");
     if(img != null) {
         string imgPath = @"~/Content/Image/PerformerImages/" + model.Id + "_" + Path.GetFileName(img.FileName);
         img.Save(imgPath);
         model.Thumbnail = imgPath.Replace("~", "");
     }
     if(ModelState.IsValid) {
         db.Entry(model).State = EntityState.Modified;
         await db.SaveChangesAsync();
         return RedirectToAction("ListPerformers");
     }
     return View("Error");
 }
 public async Task<ActionResult> AddPerformer(Performer model) {
     model.Id = Guid.NewGuid().ToString();
     model.DateCreated = DateTime.Now;
     var img = WebImage.GetImageFromRequest("file");
     if(img != null) {
         string imgPath = @"~/Content/Image/PerformerImages/" + model.Id + "_" + Path.GetFileName(img.FileName);
         img.Save(imgPath);
         model.Thumbnail = imgPath.Replace("~", "");
     }
     else {
         model.Thumbnail = "/Content/Image/PerformerImages/default_performer.png";
     }
     if(ModelState.IsValid) {
         db.Performers.Add(model);
         await db.SaveChangesAsync();
         return RedirectToAction("ListPerformers");
     }
     return View("Error");
 }