public IActionResult GetAll() { IDataResult <IList <UserGroup> > result = _iUserGroupService.GetEntityValues(); if (result.Success) { return(Ok(result.Data)); } return(BadRequest(result.Message)); }