Add Success ALert Using sweet alert in Asp.net MVc
TempData["message"] = "Job Name Created Successfully";
public ActionResult Index()
index.cshtml
[AcceptVerbs("Get", "Post")] [AllowAnonymous] public async Task <IActionResult> IsJobNameInUse(string JobName) { ScheduleDapper group = ScheduleDapper.CheckDuplicateJobName(JobName); if (group == null) { return Json(true); } else { return Json($"JobName {JobName} is already in use."); } }
No comments:
Post a Comment