public async Task <IActionResult> MenuAccountInterfaceData(string RegisterId)
        {
            ModelMenuFAccount_InterfaceData e = await _IDocMenuFService.MenuAccountInterfaceDataAsync(RegisterId);

            if (e != null)
            {
                return(Ok(e));
            }
            else
            {
                return(BadRequest());
            }
        }
Ejemplo n.º 2
0
        public async Task <ModelMenuFAccount_InterfaceData> MenuAccountInterfaceDataAsync(string RegisterId)
        {
            ModelMenuFAccount_InterfaceData resp = new ModelMenuFAccount_InterfaceData();

            resp.listfirstname = await GetAllFirstNameAsync();

            resp.listfaculty = await GetAllFacultyAsync();

            resp.account = await GetEditDataAccountAsync(RegisterId);

            resp.UserPermission = await _IRegisterUserRepository.GetPermissionPageAsync(RegisterId, "M037");

            return(resp);
        }