public async Task <IActionResult> GetMenuandSubmenuDetails()
        {
            _MenuandSubmenuDetails = new List <MenuandNavigationDTO>();
            try
            {
                _MenuandSubmenuDetails = await _RolesDAL.GetMenuandsubmenulist(Con);

                return(_MenuandSubmenuDetails != null && _MenuandSubmenuDetails.Count > 0 ? Ok(_MenuandSubmenuDetails) : (IActionResult)StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));

                throw;
            }
        }