Exemplo n.º 1
0
        // GET: List of user details
        public JsonResult GetListOfUserRole()
        {
            try
            {
                var result = userDetailsService.GetListOfUserRoles().Where(x => x.IsActive == true);

                return(Json(new { success = true, data = result }, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(new { success = false, errorMessage = ex.Message }, JsonRequestBehavior.AllowGet));
            }
        }