public JsonResult Save(GroupViewModel model)
        {
            if (ModelState.IsValid)
            {
                var response = _permisisonGroupService.MapViewModelToGroup(model, CurrentUserName, true);

                return(Json(new { StatusCode = response > 0 ? StatusCodes.Status200OK : StatusCodes.Status500InternalServerError, Message = response > 0 ? (model.Id > 0 ?"Updated successfully":"Created successfully") : "Not updated" }));
            }
            else
            {
                return(Json(new { StatusCode = StatusCodes.Status500InternalServerError, Message = "Not updated" }));
            }
        }
        public ActionResult Save(GroupViewModel model)
        {
            if (ModelState.IsValid)
            {
                var response = _permisisonGroupService.MapViewModelToGroup(model, CurrentUserName, true);

                return(Json(response > 0));
            }
            else
            {
                return(Json(false));
            }
        }