Example #1
0
        public IActionResult DeleteMultipleRecords([FromBody] List <int> Ids)
        {
            var LastUpdatedBy = ADAuthUtils.GetLoggedUserEmail(HttpContext);
            var result        = examsession.DeleteMultiple(Ids.ToArray(), LastUpdatedBy);

            if (result.status)
            {
                return(Json(new { isSuccess = true }));
            }
            else
            {
                return(Json(new { isSuccess = false }));
            }
        }
Example #2
0
        public ActionResult DeleteMultipleRecords(List <int> Ids)
        {
            var result = examsession.DeleteMultiple(Ids.ToArray(), User.Identity.Name);

            if (result.status)
            {
                return(Json(new { isSuccess = true }));
            }
            else
            {
                //ViewBag.ErrorMessage = result.message;
                //return View("Error");
                return(Json(new { isSuccess = false }));
            }
        }