public IActionResult setResourceActive(ResourceModel obj) { try { _commRes.setResourceActive(obj.Id, obj.enabled_flg); return(Ok()); } catch { return(BadRequest()); } }