prettier
This commit is contained in:
parent
8755cd6cbb
commit
a4976039d5
1 changed files with 3 additions and 2 deletions
|
|
@ -192,10 +192,11 @@ namespace Yavsc.Controllers
|
||||||
_context.SaveChanges();
|
_context.SaveChanges();
|
||||||
ViewData["StatusMessage"] = "Post modified";
|
ViewData["StatusMessage"] = "Post modified";
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
} // TODO Else hit me hard
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ViewData["StatusMessage"] = "Access denied ...";
|
ViewData["StatusMessage"] = "Accès restreint";
|
||||||
|
return new ChallengeResult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return View(blog);
|
return View(blog);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue