public IActionResult ChangeLogo(LogoViewModel model) { if (ModelState.IsValid) { string uniqueFileName = UploadedFile(model); var logo = new Logo { LogoUrl = uniqueFileName, }; _db.AddLogo(logo); } return(RedirectToAction("Dashboard", "Admin")); }
public IActionResult ChangeLogo(LogoViewModel model) { if (ModelState.IsValid) { string uniqueFileName = UploadedFile(model); var logo = new Logo { LogoUrl = uniqueFileName, }; _db.AddLogo(logo); } return(RedirectToAction("Dashboard", "Admin")); }