コード例 #1
0
        public async Task <ModelMenuA2_InterfaceData> MenuA2InterfaceDataAsync(string RegisterId)
        {
            ModelMenuA2_InterfaceData resp = new ModelMenuA2_InterfaceData();

            resp.ListLaboratoryRoom = new List <ModelSelectOption>();
            resp.ListLaboratoryRoom = await GetAllLaboratoryRoomAsync();

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

            return(resp);
        }
コード例 #2
0
        public async Task <IActionResult> MenuA2InterfaceData(string RegisterId)
        {
            ModelMenuA2_InterfaceData e = await _IDocMenuAService.MenuA2InterfaceDataAsync(RegisterId);

            if (e != null)
            {
                return(Ok(e));
            }
            else
            {
                return(BadRequest());
            }
        }