public IActionResult EditImage(ImageUpload.Models.ImageModel model) { int recordCreated = Edit_Image(model.ImageId, model.Name, model.Email, model.SchoolYearBegin, model.SchoolYearBegin + 1, model.Grade, model.TeacherName); return(RedirectToAction("ViewImage")); }
public IActionResult ViewPost(ImageUpload.Models.ImageModel model, int Id) { string captchaResponse = HttpContext.Request.Form["g-Recaptcha-Response"]; _ = CreateComment(model.Comments.Comment, model.Comments.Name, model.Comments.Flag, model.Comments.ImageId); return(RedirectToAction("ViewPost", new { ID = Id })); }