Exemplo n.º 1
0
        public async Task <ActionResult <BaseResponse> > GetByModuleIdAsync(int typeId, int ModuleId)
        {
            var exist = await _tms.IsExist(a => a.TypeId == typeId && a.Id == ModuleId);

            if (!exist)
            {
                return(new BaseResponse {
                    Success = false, Message = $"该类型下不存在编号为{ModuleId}的模块"
                });
            }
            var rm = await _tmcs.GetTypeModuleControlsByModuleIdAsync(ModuleId);

            return(rm);
        }