public ActionResult AddUser(string username, string password, string email, bool canCreate, bool canUpdate, bool canRead, bool canDelete) { try { bool ret = _sessionManager.AddUser(new UserInfo(username, password, email, canCreate, canUpdate, canRead, canDelete)); return(Json(new ApiSuccess <bool>(ret))); } catch (Exception ex) { return(Json(new ApiError($"{ex.Message}"))); } }